﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcContrib.Pagination.IPagination<SinBiota.Model.Entities.Occurrence>>" %>
<%@ Import Namespace="Localization" %>
<%@ Import Namespace="MvcContrib.UI.Pager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Strings.Occurrences %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server"> 
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/Custom/BiotaAjaxFunctions.js")%>"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%--AJAX Details and JQuery UI dialog:--%>
    <% using (Ajax.BeginForm("Details", null, new AjaxOptions { UpdateTargetId = "OccurrenceDetails", OnSuccess = "function() {showDetails('Occurrence');}" }, new { id = "OccurrenceDetailsAjaxForm" }))
       { %>
    <%: Html.Hidden("id")%>
    <% } %>
    <div id="OccurrenceDetails" title="<%: Strings.Occurrence %>">
    </div>
    <h2>
        <%: Strings.Occurrences %></h2>
        <%= Html.Pager(Model) %>
        <% Html.RenderPartial("ListUserControl", Model); %>
    <p>
        <%: Html.ActionLink(Strings.SearchOccurrences, "Search") %>
    </p>

</asp:Content>
